package com.kyivmohyla.kma2.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.kyivmohyla.kma2.client.presenter.LoginAllowViewPresenter;

public class LoginAllowView extends Composite implements LoginAllowViewPresenter.Display {
    private static LoginAllowViewUiBinder ourUiBinder = GWT.create(LoginAllowViewUiBinder.class);
    @UiField
    protected Label firstName;
    @UiField
    protected Label lastName;
    @UiField
    protected Label email;
    @UiField
    protected Label password;
    @UiField
    protected Label positionId;

    public LoginAllowView() {
        initWidget(ourUiBinder.createAndBindUi(this));
    }

    @Override
    public HasText getFirstName() {
        return firstName;
    }

    @Override
    public HasText getLastName() {
        return lastName;
    }

    @Override
    public HasText getEmail() {
        return email;
    }

    @Override
    public HasText getPassword() {
        return password;
    }

    @Override
    public HasText getPositionId() {
        return positionId;
    }

    @Override
    public Widget asWidget() {
        return this;
    }

    interface LoginAllowViewUiBinder extends UiBinder<Widget, LoginAllowView> {
    }
}